package logger

import (
	log "github.com/sirupsen/logrus"
	"node/gin/conf"
	"os"
)

//配置日志
func Setup() {
	log.SetFormatter(&log.TextFormatter{})
	log.SetOutput(os.Stdout)
	log.SetLevel(log.Level(conf.Config.Server.Level))
}
